
<%@page import="com.test.entity.TestEntity"%>

<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath %>">
<meta charset="UTF-8">
<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<title>tests.jsp</title>
<style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        a {
            text-decoration: none;
            color: #fff;
            opacity: 0.7;
        }


        #border-top {
            left: 0px;
            top: 0px;
            height: 80px;
            line-height: 18px;
            background-color: #fff;
            font-size: 14px;
        }

        #border-top_title {
            left: 0px;
            top: 0px;
            height: 80px;
            width: 253px;
            background-color: #002140;
            color: #fff;
            float: left;
        }

        #border-top_title_content {
            font-size: 28px;
            font-weight: bold;
            margin-left: 30px;
            padding-top: 30px;
            color: #fff;
            float: left;
        }

        #border-top_user {
            background-color: #B1B1B1;
            width: 1187px;
            height: 80px;
            float: right;
        }

        #border-top_user_content {
            margin-top: 20px;
            font-size: 32px;
            float: right;
        }

        #user {
            padding-bottom: 30px;
            color: #595959;
        }

        #border-top_des {
            margin-top: 10px;
            width: 1186px;
            height: 40px;
            border-right: 1px solid #F0F0F0;
            background-color: #fff;
            float: right;
        }

        #top-des {
            color: #595959;
        }

        #border-top_descontent {
            margin-top: 8px;
        }

        #left {
            top: 79px;
            width: 253px;
            height: 645px;
            font-size: 20px;
            background-color: #2B2E34;
            display: inline-block;
        }

        #left_word,
        a {
            color: #fff;
            vertical-align: middle;
        }

        #left_word>a>img {
            vertical-align: middle;
        }

        ul li {
            list-style: none;
            line-height: 50px;
            height: 50px;
        }

        #list li {
            width: 253px;
            color: #fff;
            opacity: 0.7;
            vertical-align: middle;
        }

        #list>li:hover {
            background: #23262E;
            display: block;
            opacity: 1;
        }

        #listimg {
            margin-right: 20px;
            vertical-align: middle;
        }

        #listimgnone {
            margin-right: 67px;
            vertical-align: middle;
        }

        .sidebar {
            width: 300px;
            font-size: 20px;
            line-height: 45px;
            vertical-align: middle;
        }

        #right {
            position: relative;
            float: right;
            width: 1100px;
            height: 560px;
            margin-top: 20px;
            margin-right: 50px;
            background-color: #fff;
        }

        #right-content {
            font-size: 28px;
            font-weight: bold;
            margin-left: 30px;
            padding-top: 30px;
            color: black;
            float: left;
        }

        #information {
            position: absolute;
            top: 80px;
            right: 150px;
            width: 900px;
            height: 450px;
            color: black;
            background-color: #DCDCDC;
        }

        #jg1 {
            height: 20px;
        }

        #jg2 {
            height: 10px;
        }

        .rpTitle {
            font-size: 22px;
            font-family: 黑体;
        }

        .runTime {
            font-size: 16px;
            font-family: 黑体;
        }

        .xinxi {
            font-size: 16px;
            font-family: 楷体;
        }

        .zt {
            font-size: 16px;
            font-family: 楷体;
            color: blue;
        }

        #return {
            position: absolute;
            top: 420px;
            right: 320px;
            width: 200px;
            height: 100px
        }

        #close {
            width: 100px;
            height: 20px;
            color: #1890FF;
        }
    </style>
</head>
<body>

<script type="text/javascript">
	setInterval(
		"document.getElementById('sysDate').value=new Date().toLocaleString()+'  星期'+'日一二三四五六'.charAt(new Date().getDay());",
		1000);
	setInterval(
		"document.getElementById('sysSysDate').value=new Date().toLocaleString();",
		1000);
</script>


	<% 
	List<TestEntity> list = (List<TestEntity>)request.getAttribute("list");
	if(list==null||list.size()<1){
		out.print("没有数据");
	}else{
		for(TestEntity testEntity:list){	
    	%>
    	<p class="xinxi">&nbsp;&nbsp; · 项目名称：<%=testEntity.getCaseid() %></p>
            <%
	      }
	      }
	  %>
  	<div id="right">
        <div id="right-content">测试结果</div>
        <div id="information">
            <p id="jg1"></p>
            <p class="rpTitle">获取项目信息</p>
            <p id="jg2"></p>
            <p id="sysDate" class="runTime"> · 运行时间：</p>
            <p id="jg2"></p>
            
            
            <p id="jg2"></p>
            <p class="zt">&nbsp;&nbsp; · 状态：执行完毕</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; · 用例集合：单用例运行</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; · 运行时长：260</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; · 运行用户：qhl</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; ·
                URL：http://49.232.71.217.8899/common/fgadmin/login</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; · 请求方式：post</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; · 检查点：code=0</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; · 失败原因：验证通过</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; · 请求参数：{ "phoneArea":"86",
                "phoneNumber":"20000000000", "password":"netease123" }</p>
            <p id="jg2"></p>
            <p class="xinxi">&nbsp;&nbsp; · 返回参数：{ "message":"success",
                "code":200 }</p>
                
            <div id="return">
            	<a href="index.html"><button id="close" type="button">关闭</button></a>
            </div>
	</div>
   </div>
</body>
</html>